﻿using FreeSql.DataAnnotations;
using IMES.Common.Dtos;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IMES.Common.Domain.SirModel
{
    /// <summary>
    /// 产品信息表
    /// </summary>
    public class Product:Audit
    {
        /// <summary>
        /// 产品主键Id
        /// </summary>
        [Column(IsIdentity = true, IsPrimary = true)]
        public int ProductId { get; set; }
        /// <summary>
        /// 产品编号
        /// </summary>
        public string ProductNumber { get; set; }
        /// <summary>
        /// 产品名称
        /// </summary>
        public string ProductName { get; set; }
        /// <summary>
        /// 产品规格
        /// </summary>
        public string ProductSpecification { get; set; }
        /// <summary>
        /// 单位
        /// </summary>
        public int StockUnit { get; set; }
        /// <summary>
        /// 工艺路线编号（主键）
        /// </summary>
        public int ProcessRouteId { get; set; }
        /// <summary>
        /// 产品属性
        /// </summary>
        public int ProductStats { get; set; }
        /// <summary>
        /// 最大库存
        /// </summary>
        public int MaxInventory { get; set; }
        /// <summary>
        /// 最小库存
        /// </summary>
        public int MinInventory { get; set; }
        /// <summary>
        /// 安全库存
        /// </summary>
        public int SaveInventory { get; set; }
        /// <summary>
        /// 库存数量
        /// </summary>
        public int InventoryStore { get; set; }
        /// <summary>
        /// 成品图
        /// </summary>
        public string? ProductImage { get; set; }
    }
}
